local lingce = fk.CreateSkill {

  name = "joy__lingce",

  tags = { Skill.Compulsory, },

}



lingce:addEffect(fk.CardUsing, {
  name = "joy__lingce",
  anim_type = "drawcard",
  events = {fk.CardUsing},
  frequency = Skill.Compulsory,
  can_trigger = function(self, event, target, player, data)
    return
      player:hasSkill(lingce.name) and
      not data.card:isVirtual() and
      (
        table.contains(zhinang, data.card.trueName) or
        table.contains(player:getTableMark( "@$joy__dinghan"), data.card.trueName) or
        data.card.trueName == "raid_and_frontal_attack"
      )
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, lingce.name)
  end,
})

return lingce